package com.example.xiaomi.Model.Controller;

import com.example.xiaomi.Model.Dao.adddetailsDao;
import com.example.xiaomi.Model.entity.adddetailsEntity;

import java.math.BigDecimal;
import java.util.List;

public class adddetailsList {
    adddetailsDao adddetailsDao = new adddetailsDao();
    public Integer doInsert(int did, int cid,String dmail, int damount, BigDecimal totalcost){
        return adddetailsDao.doInsert(did,cid,dmail,damount,totalcost);
    }
    public List<adddetailsEntity> selectById(Integer did){
        return adddetailsDao.selectById(did);
    }
    public adddetailsEntity selectByMail(String Mail){
        return adddetailsDao.selectByMail(Mail);
    }
    public Integer doUpdate(int did,int cid,String dmail,int damount,BigDecimal totalcost,int id){
        return adddetailsDao.doUpdate(did,cid,dmail,damount,totalcost,id);
    }

}
